/*
 * @Description:
 * @Version: 1.0
 * @Author: Shi Hexiang
 * @Date: 2023-09-22 10:33:21
 * @LastEditors: yxx
 * @LastEditTime: 2024-10-17 13:45:38
 */
export namespace SysReq {
  //菜单管理 树状修改
  export interface MenuUpdate {
    id?: number | undefined
    pid?: number | undefined
    type: string | number
    name: string
    path: string
    component: string
    icon: string
    perms: string
    sort: number
    remark: string
    status?: string | number | undefined
    isHide?: boolean | undefined
    isFull?: boolean | undefined
    isAffix?: boolean | undefined
    isKeepAlive?: boolean | undefined
  }

  // 用户管理 条件查询分页
  export interface UserPageList {
    pageIndex: number
    pageSize: number
    account?: string
    name?: string
    deptId?: any
    phone?: string
    email?: string
    status?: string
    type?: string
  }
  // 用户管理 新增修改
  export interface UserAdd {
    id?: number
    account: string
    name: string
    deptId?: number
    roleId: number
    phone: string
    email: string
    sex?: string
    imgPath?: string
    password?: string
    status: string
    remark: string
    type: string
  }
  // 单独 修改个人信息
  export interface UserAloneAdd {
    id?: number
    name?: string
    phone?: string
    email?: string
  }
  // 用户管理 删除用户
  export interface UserDelete {
    ids: number[]
  }

  // 角色管理  条件查询分页
  export interface RolePageList {
    pageIndex: number
    pageSize: number
    name?: string
    status?: string
    startTime?: string
    endTime?: string
  }

  //角色管理 新增修改
  export interface RoleAdd {
    id?: number
    name: string
    sort?: number
    scope?: number
    status: number
    remark: string
    menuIds: number[]
    deptIds: any[]
  }

  // 角色管理 删除用户
  export interface RoleDelete {
    ids: number[]
  }

  // 日志管理

  //操作日志条件查询分页
  export interface LogPageList {
    pageIndex: number
    pageSize: number
    op?: string
    ip?: string
    result?: any
    module?: string
    uid?: any
    plat?: string
    startTime?: string
    endTime?: string
  }
  //登陆日志条件查询分页
  export interface LoginLogPageList {
    pageIndex: number
    pageSize: number
    ip?: string
    result?: any
    uid?: any
    startTime?: string
    endTime?: string
  }
}
